﻿using CommunityToolkit.Mvvm.ComponentModel;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoneLine.Common;
using ZoneLine.Views;

namespace ZoneLine.Models
{
    public class StationResultBase : ObservableObject
    {
        [Column(IsIdentity = true)]
        public int Id { get; set; }

        private string _absScanCode;
        [DgColumnAttr("减震器码")]
        public string AbsScanCode
        {
            get { return _absScanCode; }
            set { SetProperty(ref _absScanCode, value); }
        }
        [DgColumnAttr("创建时间")]
        public DateTime CreateTime { get; set; } = DateTime.Now;

        private string _code;

        [DgColumnAttr("二维码")]
        public string Code
        {
            get { return _code; }
            set { SetProperty(ref _code, value); }
        }

        private string _boxCodeView;
        [DgColumnAttr("装箱码")]
        [FreeSql.DataAnnotations.Column(IsIgnore = true)]
        public string BoxCodeView
        {
            get { return _boxCodeView; }
            set { SetProperty(ref _boxCodeView, value); }
        }

    }
}
